package com.csu.letaobackend.service;


import com.alipay.api.AlipayApiException;
import com.csu.letaobackend.bean.Order;
import com.csu.letaobackend.bean.Receiving;
import com.csu.letaobackend.bean.Refundservice;
import com.csu.letaobackend.commom.CommonResponse;
import com.csu.letaobackend.vo.OrderItemVO;
import com.csu.letaobackend.vo.OrderVO;
import com.csu.letaobackend.vo.RefundserviceVO;

import java.util.List;

public interface OrderService {



      CommonResponse<List<OrderVO>> getOrders(String username,int status);

      CommonResponse<OrderVO> getOrderByOrderId(String orderid);

      CommonResponse<OrderVO> updateOrderStatus(String orderid, int status);

      CommonResponse<Refundservice> addRefundservice(String orderid,String refundreason);

      CommonResponse<RefundserviceVO>  getRefundservice(String orderid);

      CommonResponse<Refundservice>  refuseRefundservice(String orderid,String refusalreason);

      CommonResponse<List<Receiving>> getReceivingByUsername(String username);

      CommonResponse<Receiving> getReceivingById(int  receivingid);

      CommonResponse<List<Receiving>> updateReceiving(Receiving receiving);

      CommonResponse<String> handleAlipay(String orderID, String total, String usernmae) throws AlipayApiException;

      void orderNotify(String orderID);

      CommonResponse<List<OrderVO>> getOrdersBySellers(String username,int status);

      CommonResponse<List<OrderVO>> getOrdersByShopId(int shopid, int status);
}
